package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class TodoData {
	@JsonProperty("todo_id")
	String todoId;
	@JsonProperty("todo_description")
	String todoDescription;
	@JsonProperty("todo_duedate")
	String todoDuedate;
	@JsonProperty("todo_completion_status")
	String todoCompletionStatus;

	TodoData() {

	}

	public String getTodoId() {
		return todoId;
	}

	public void setTodoId(String todoId) {
		this.todoId = todoId;
	}

	public String getTodoDescription() {
		return todoDescription;
	}

	public void setTodoDescription(String todoDescription) {
		this.todoDescription = todoDescription;
	}

	public String getTodoDuedate() {
		return todoDuedate;
	}

	public void setTodoDuedate(String todoDuedate) {
		this.todoDuedate = todoDuedate;
	}

	public String getTodoCompletionStatus() {
		return todoCompletionStatus;
	}

	public void setTodoCompletionStatus(String todoCompletionStatus) {
		this.todoCompletionStatus = todoCompletionStatus;
	}

	protected TodoData(Parcel in) {
		todoId = in.readString();
		todoDescription = in.readString();
		todoDuedate = in.readString();
		todoCompletionStatus = in.readString();
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(todoId);
		dest.writeString(todoDescription);
		dest.writeString(todoDuedate);
		dest.writeString(todoCompletionStatus);
	}

	public static final Parcelable.Creator<TodoData> CREATOR = new Parcelable.Creator<TodoData>() {
		public TodoData createFromParcel(Parcel in) {
			return new TodoData(in);
		}

		public TodoData[] newArray(int size) {
			return new TodoData[size];
		}
	};
}
